package net.stuffrepos.util.config;

import java.io.File;

/**
 *
 * @author Eduardo H. Bogoni <eduardobogoni@gmail.com>
 */
public class UserConfig {

    private final String appId;

    public UserConfig(String appId) {
        this.appId = appId;
    }

    public File getRootDirectory() {
        return new File(new File(System.getProperty("user.home")), "." + appId);
    }

    public File getFile(String path) {
        return new File(getRootDirectory(), path);
    }

}
